7 Replies Latest reply on Nov 14, 2007 2:08 PM by Peter deHaan

    StringUtil issues

    Constantin Ehrenstein
      Hey there,
      I want to process a large amount of data from an address database.

      Very often, a database cell doesn't contain any information, but the lack of information in fact consists of an unknown amount of whitespace.

      So I want to use StringUtil.trim(str) when iterating through the database table cells, and I want the function to return an empty string or null value.

      Unfortunately, StringUtil's trim method yields an error when invoked on an empty string or null value, when in fact it should just return an empty string.

      Best regards
      Cathness