#! ruby -Ks str = "String Time Hash Num" print("対象の文字列:", str, "\n") newStr = str.delete(" ") print("空白を削除した結果:", newStr, "\n")