Add checking of stray final characters.