substr not behaving how I expect

Printable View