replace is-unit and is-string for typeof