More efficient string{startsWith,endsWith}