Handle exceptions in keywords splitting