More rigorous matching of kpoint string