Fix charAt check in Leading Whitespace Handler

The latest changes to whitespace handling currently break our templating implementation.

Since `Regexp.exec` returns an array (or null), `charAt` is an undefined method. You can get around this by casting padding as a `String`.