Problem matching multiline text

hi, i’m trying to check a multiline input text field (classic text, as2) for a correct answer, but it’s inserting an invisible paragraph return which screws it up. everything works, it’s fine when i choose single line but not multiline, any ideas anyone?

var SampleAnswer:String = "peanut butter and jelly sandwich";

var txtListen:Object = new Object();

txtListen.onChanged = function()
{
	CheckAnswer();
	trace(inputText.text);
};

inputText.addListener(txtListen);

function CheckAnswer()
{
	if (inputText == SampleAnswer)
	{
		//doSomething;
	}
}

traces this as i type and never matches the correct answer because of the extra paragraph return

p

pe

pea

pean