java.util.regex.PatternSyntaxException: Dangling meta character '+' near index 0 in removeAll() in Java

change replaceAll() to replace()

because replaceAll takes regex as input and replace takes string as input. in regex + is a special character.

You can use \ to skip +

change “5dhb+yv6” to “5dhb\+yv6”