remove trailing / leading white space from title