substantially improved

used str.replace()
combined a bunch of lines of code
made final be much nicer