Allow pasting numbers with ending new line character, by trimming pasted
content.