Why startWith + endsWith when you're actually matching the whole string?