Use charAt(0) so it doesn't break in IE, I forget if 9 supports it but small enough change.