fixed issue with sending spaces in string