Error handling, string stripping.