remove trailing white space from tool tips