remove empty space before send to server