Add option for trim spaces from inputs