Is there a way to add a character, say '\t', at specific position of the string?
For example:
String str = "key1=123 key2=text with spaces key3=foo";
I need to replace all spaces before keys with tabs in the key value pair string.
Note that some values may contain spaces.
=signs?String.replaceAll()method