replaceAll() function

use: /replace all occurrence of the character ch with nch in the string.