Better regex, use translator instead of a switch for the status