converting to lowercase before calcuating frequencies