fixing input text

msg.text doesnt get the input, it's matches[1]