Trim whitespace from message, increase heartbeat timeout