Added support for strings, equivalent to what we have for ints.