Getting an IllegalArgumentException when using the replace() function

Printable View