I am attempting to apply the map() function to a stream of strings right now such that the new stream contains a sorted version of each string. That is, instead of "cat" it will have "act". I am attempting to run the method as so:
Stream<String> sortedStream = validWordStream.map(s -> Arrays.sort(s.toString().toCharArray()));
However, it complains that the stream returned is a stream of Objects, not Strings:

Question
What intuitive changes do I have to make to the map() function such that I get a stream of sorted strings?