Trim resulting command string.
Allow string argument to tag function for direct calls.