Removed space char at the end of text