[TASK] Use strpos instead of substr to check the start of a string