Prevent an error if str.match finds nothing