trim heartbeat characters