What is the source of the data - is it a text file, Excel spreadsheet, or a database table? The string variables may be padded with blanks, which can be removed with LTRIM or RTRIM function.
You can determine the version of SPSS Statistics that you're using by going to Help/About on the menu. The current version is 26, which is available to all IBMers.
------------------------------
Steve Poulin, Ph.D.
Senior Data Scientist
IBM Finance Data Science & Technology
------------------------------