Everything works well. Only problem: last character!