add lcs for string substituting last command

E.g.:
    # service stop foo
    # lcs foo bar # executes 'service stop bar'