optimised [removed ignore case and converted the whole string to downcase]