Moved punctuation charaters before the expansion.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>