Rather than making use of Strings throughout, look to see what would be involved in using slices, i.e. &str'a