Replacing logic with .replace, hooray simplicity