Didn't know replace was a thing, so I did it in a kinda of shitty way before. Shouldn't be much difference except for the code being more understandable.