A study of charge distributions in inelastic proton-proton collisions