simplify starts/endsWith