Module takes three arguments: text and regExp to match first argument and special character to replace matched parts