Refs #17093. Use cross-browser String.indexOf() instead of String.startsWith()
(cherry picked from commit 65789c540c3d0901aa003c678c581feac119b9ae)