Stop reading input once a non-string is returned