anchor.diff:           trimr/2,
            uppercase/1]).
   
  +% based on unicode_util:whitespace/0
  +-define(WHITESPACE, [13,9,10,11,12,13,32,133,8206,8207,8232,8233]).
  +
   -include("cloudi_core_i_constants.hrl").
   
   %%%------------------------------------------------------------------------
  
positive.code: trim(String) ->
      string:trim(String).
  -else.
  trim(String)
      when is_list(String) ->
      string:strip(String);
  trim(String)
      when is_binary(String) ->
      erlang:list_to_binary(string:strip(erlang:binary_to_list(String))).
  -endif.
  
  %%-------------------------------------------------------------------------
  
negative.code: trimr(String) ->
      string:trim(String, trailing).
  -else.
  trimr(String) ->
      trimr(?WHITESPACE, String).
  -endif.
  
  %%-------------------------------------------------------------------------
  