remove lowercasing from word sequence function