Use i flag in the regular expression instead of having A-Z.