Fix aliases after changes to uploads
Fix add-programmes & add-projects.

To guard against empty strings and strings that are all spaces or have
spaces.