Bug fix: Text rendering of text with trailing punctuation (Issue #303)