Improved window title regex