Fixed the chomp snippet to work correctly.