From java,I am trying to read the values from excel,excel values have white-spaces in it. I was not able to trim it. java trim function is not working in it. Please help me.
String.trim() only removes white-space at the begin and end. Not in the middle and remember that it returns a new String object. The value of the original String is not altered.