[WIP] Add string commands

targets #270 
Argh, I removed @matthiasbeyer's comment because I got confused about where this scope ends.
He was right when he said that `res` might be NULL. You should return/break in this case.