a class to validate key=>value pattern  values, like $_GET, $_POST