Fix use of undefined function startsWith.