Complete the script function to find unformat msg