Part 2 scratched my head a little until I worked out that t can be in multiple strings and a replace may mess things up but I went with a hacky fix