update cleanRegex. Added test scenario