renamed a function to be more accurate
Match now also works on String-type.