extension of R interface to work with strings