fix edgecase of startsWith

closes #373
Merge pull request #374 from epeli/edgecase-startswith

fix edgecase of startsWith