fixed the asserts
update to the exercise - case with trailing spaces