Make query similarity check simpler and case insensitive