sanitize spaces from username
sanitize spaces from reponame
isLegalName function