Added a option to use stdin for sent string.