trim titles so they dont show whitespace