settings: trim setting values properly
settings: trim setting values properly

goodbtc is having some parse troubles which (I think) were due
to the blind "subtract 1 from the length" method of chopping
off trailing whitespace in setting values. Now we actually scan
from beginning and end to clear off any and all whitespace.

apoelstra/cj-client,apoelstra/cj-client,apoelstra/cj-client,apoelstra/cj-client