Leading and trailing space stripped off selection in annotation UI