Use xp to swap the character under your cursor with the one to its right.

For example, with your cursor on the misplaced l in Hlelo, type xp.

puts "Hlelo world!"

The x deletes the character under the cursor and puts it in a register and p pastes that register to the right of the cursor. You end up with:

puts "Hello world!"