Remove trailing space char in ItemHandler#getFormattedString()