Trim spaces from the title string.