added count-chars and remove-whitespace to util