fixed substr ie6-8, startsWith regex