F31 - Fix strings ending in semicolons

Fixes #1144