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

Doing the required type conversions before calling set