Fix synchronous sending of messages and typos

- create whole string before sending to avoid synchronous sending