string.startsWith fix for chrome