Refactored end of line trim of synopsis extraction into regex.