I\'m trying to replace the beginning of a string with backslashes to something else.
For some weird reason the replaceAll function doesn\'t like backslashes.
The replaceAll method uses regular expressions, which means that you have to escape slashes. In your case it might make sense to use String.replace instead: