Refactoring test a bit
Fixed bug where it was possible to get new lines in the nick name settings dialog.