Don't use regexp when the command is a string.

This escapes special characters like {} and ' in unfortunate ways.