SoSci Survey allows for functions that have been checked an whitelisted. If you're missing function, you can post them.
strval()
If you need to transform a number, you can simply use a PHP typecast for that
$s = (string)$n;
filter_input()
If you just need an option to read inputs from the URL, the question type "Device and request variables" would be the better option, because it also works with repeated pages due to missing answers. The question type also grants access to some SERVER variables, such as IP address and the referer.