Added check to string validations to skip non-strings

Fixes bug #1249088

Change-Id: Iec0e38d5f1d880a11f700b3c7bf8e142caf80670