Encoding/decoding system with capital sensing
You can use it only if you give credit. Credit to @griffpatch for the base encoding/decoding, edited by me.