found a serious performance issue in regex.findFirstIn + replace first and replace last of head. html, body text