Remove Trailing White Space when I paste Code

When I paste my Programming Code into the Chat Text Area it does not trim white space below the code. This forces me to remove all the trailing white space myself before I can start typing my Question.

Please remove all trailing white space after the last character.