Update plugin.py

Fixed string index out of range error on line 112