GPII-277: Ensure that only string value types are passed

Doing the required type conversions before calling set