Hi, I have noticed that trim will return a copy of the string argument even if there are no spaces, instead of returning the original string.
public static function trim(str:String):String
{
...
if (endIndex >= startIndex)
return str.slice(startIndex, endIndex + 1);
else
return "";
Is that intended behavior (maybe for compatibility, or something ...) ?
Maurice
