Move space addition to implementation.

Currently when get methods are created, extra trailing whitespace is added due to the variableType variable.