Method for controlling sulfur concentration in ammonia