public static String stripBlanks(final String string) {
    //// Preconditons
    if (string == null)
      throw new InvalidParameterException("string cannot be null");
    
    return stripTrailing(stripLeading(string, ' '), ' ');
  }