Added valid username check to stats functions
Stripped whitespace from nickname before querying masterserver.