Trim each path in Paths.

Also trim Name and Description in ProgramEntry instead of API. This
allows us to not have to do the same thing in both AddProgram and
EditProgram, and it wasn't being done in EditProgram already...