trim secret because space, carriage return, etc... are not valid.