Added a fallback to handle cases when a non-string object is passed as a parameter value.

The value is parsed to string using the default object.ToString() method.
Amended the previous commit and added another change