Trim whitespace from settings

Add trim() function to $_REQUEST variables to prevent whitespace at
beginning and end of options.