A few fixes

I've made a few fixes to make it work properly on my computer.

I've fixed substring matching so that this doesn't happen:

    XPROP:    Spotify - Aphex Twin – Windowlicker [Chosen by fans on Warp20.net]
    DBUS:     Windowlicker [Chosen by fans on Warp20.net]
    PAUSED:   No
    AD:       Yes        ***wait, what?***