Don't let a user continue with a space in class prefix

it probably should only allow uppercase letters