Fix for player handling. Some string trim()'s for user input data.
Small refactoring