update nameparse to return string instead of bool