OK. Trim is safe on any string and getText always returns a string, so this would be ok.