Not necessarily for this PR, but we should benchmark if the additional strtolower() call is more expensive than using the "i" modifier for the regex.