make ftw case insensitive via flag rather than using separate matching text