units.val function

Check unit string against allowed values. See util_fns.R file for regex patterns