Replace deprecated character access syntax

This `$string{0}` character access syntax was around for a while in PHP but always scared me.
>>The {0} syntax is deprecated in PHP 6.

> Citation needed :)

http://tw2.php.net/manual/de/language.types.string.php#language.types.string.substr