regex before and after
clean out messages