don't crash on parsing empty string