Error handling and word splitting