trim space from titles