Sanitize temp var properly