add check and truncation for long quotes as temp fix to quote length issue