Fixing empty string sent to the plugin