Fix for windows with number >9

Now should format the menu nicely for windows numbered up to 999 (previously broke at 10)
Now also reads the output of dmenu differently, reading up to the first "-" rather than reading only the first character (previously also broke at 10)