Hi,

ran into a problem, taking the whole afternoon trying to figure it out.

I have string "JHJH KWIW KWJEJ WNDSJ DS SDS"
I'm appending spaces in the beginning and the end of the string, just to make sure that I grab out specific string, I need to find a specific string, some things inside could have the smae ending or beginning. So I'm doing mystring = " "+mystring+" ";
if (mystring.indexof(" JHJH ") > 0)
return "trata"


now if JHJH is inside the string second or third doesn't matter, but if it is first it is not going to be found unless I remove the leading space "JHJH " It seems that PadLeft or " "+mystring irregardless of the case will remove the elading space. Does anyone have any insight into this. Any input will be greatly appreciated.