Fixed issue with values with spaces

function was treating the value as multiple arguments. Quoted the string and it's working fine.