https://medium.com/@deepak9818183049/regex-substitution-hackerrank-solution-python-by-deepak-raj-5774b0722a2f