added 'trim' and 'isNullOrWhiteSpace' functions.