Remove unused code
Remove now unused HideLiveMapHint setting

This is part of fix for #3470.
Use foreach loops when possible
Do not repeatedly create empty byte arrays

Empty byte arrays are immutable, so one can serve for everything.
Also, use uppercase to represent constants after the class
initialization is over.
Do not use regular expressions to remove . and ,
fix #4114: replace strings with patterns in parsers

Some strings are really meant to be used as regular strings and not as
regular expressions.
Log exception when it happens