avoid `'ddl'.last` and use `string[-1, 1]` instead

I'm trying to (kindly) reuse structure_dump support for AR-JDBC's Oracle rake tasks. 
This was the only line I needed to change when copy-pasting.