My requirement is to replace empty spaces between strings which i mentioned below.The strings are seperated by |
String1=Location:New York|Enterprise:Apple Inc
Expected outcome String1=Location:NewYork|Enterprise:AppleInc What needs to be given inside the replace function as \s is considered as character s