Trimming NULLs leads to bad things

Doing a check for strings before doing a trim now.