remove the last space in title