explicitly calling to_s on parameters that could potentially be a numeri...

...c type, to avoid ruby errors