Improve some startsWith() calls

Authored by kossebau on Aug 14 2017, 11:47 PM.