Added a check to the method filter to ensure that methods whose names
equal the prefix do not get filtered out.