compile the blank statement removal regex only once in constructor