Finally fixed nullerror, turned out to be a missing .Trim.
Feel bad abotu that now.