Added checks to prevent occurances of bridge characters