Very simple plugin, just drag it and put it in your plugin folder, the default interval for clearing string is 60 seconds if you want to increase or decrease it you can in the config.yml
cleanup-interval: <any positive number> # Time in seconds between each cleanup