check return value in stringparser