PRO string_conversions ; this example demonstrates how to remove whitespace from the front of a string c = string(56) help, c c = strtrim(c, 1) help, c ; this example demonstrates how to remove all white spaces from a string s = 'This is a string with spaces in it.' r = strcompress(s,/remove_all) print, r ; this example demonstrates how to extract a subset of a string b = strmid(r, 7, 6) print, b END