Update beacon ranging logic

Few minor tweaks around StringHelper logic