you could really shorten this with some regex but i'm not good at regex so i'll leave that to the pro's lol