Use `String.prototype.startsWith` method instead of the regular expression

Simplification of the processing.