Added ability to extract correct command string out of a normal string.

Issue #5