Remove last String stuff, to make plugin work in QGIS 2.x