use starts with when checking token prefix

allows prefix length to change