Using strings and streams