Fixed check for username in string. Fixes #1