TAP5-2370: utils.startsWith should check for the first occurrence of the pattern in the string, not the last one