Added rtrim to bulk_reply buffer empty-out