From: Bruno Santana Date: 2010-04-14T01:48:31+09:00 Subject: Re: My application doesn't work well Hi Rick, I did as you said and it worked. I descovered that there was a newline character, look at it: -bash-4.0$ ruby pedrapapeltesoura.rb Digite pedra, papel ou tesoura: pedra 1 "pedra" "pedra\n" alguem ganhou I solved it usind the method chomp: usuario.chomp! p(maquina) p(usuario) Now it's working: -bash-4.0$ ruby pedrapapeltesoura.rb Digite pedra, papel ou tesoura: pedra 1 "pedra" "pedra" empatou Thank you and thank all of you. If you have any problem I'll come back here. -- Posted via http://www.ruby-forum.com/.