Be smart about upper/lower case search patterns