checkObjectForEmptyString in checkObjectForInvalidString unbennant