Use Streams rather than strings throughout