strip whitespaces for tickets and users