add s//s modifier for proper newline handling