Avoid an error if the value is not a string