Fix variant check.
Avoid extra spaces in front of duraction log.