Fixed detection, now ignores case