parameter class check added
regular expression would fail on empty strings