string="#ip 127.0.0.1" new_string=string[3..-1] =>" 127.0.0.1" (Indexing in Ruby starts at 0 ...)
Best regards,
Axel