Do a case-insensitive matching for texts