removing nonsense characters