Added #delete to replicate #chomp on line 49