add comment explaining validName parsing