Removes number when pressing enter

When I use TeamViewer with my phone and connect to my computer, if I type something and end it with a number, when I press enter I will get a new row and the number get removed e.g. "test 1" if I type that in a text document and press enter, I will get a new row and it will only be test and not test 1.

Any idea what the problem is? Only happens with TeamViewer.