Parse statements from a string