I create the following for truncating a string in java to a new string with a given number of bytes.
String truncatedValue = \"\"; String curren
By using below Regular Expression also you can remove leading and trailing white space of double byte character.
stringtoConvert = stringtoConvert.replaceAll("^[\\s ]*", "").replaceAll("[\\s ]*$", "");