Added check to handle boolean values in matchUnits: a boolean false has an empty strlen().