es6 startsWith function