Call `#to_s` on value argument for a number of string commands

Fixes #311.