eliminated needless conversion to a character array