Use pattern match instead of length and head to get the username.