Refs #17093. Use cross-browser String.indexOf() instead of String.startsWith()