I have only been programming for about 6 months, however I understand what you are doing. You are taking the ASCII representation that you have been given in HxD and such and converting it into Poke. This can work, but it can also get get weird, as there are characters that aren't printable and other things. I have tried to different ways. I know Python is different from what you are using (C#?) but the concept is the same: take a string of hex values (copy and paste from a hex editor) and split the string every 2 characters. Now compare each character to its slot in a table and return the corresponding Poke character. This will save you a ton of hard coding and it will look at lot cleaner. Now, there are better ways, but this way is simplest.