change cast string

Small change to make it even faster.
http://jsperf.com/startswithperf