The script uses while loop to traverse in the input string and find 5 consecutive digits. This is stored as a pattern which is replaced by a special character in the given string.
This script can be used as a function which returns the changed value.