adding temporary variable str