Well your's would probably be safer in the context of types. But you use 0..4 and if you used char's instead of bytes you could just implicitly cast a to a string