update: add trim function to remove whitespace.

drop the whitespace from gradient list, make the gradient more sikly.