trimmed_strdup helper function
opencl: Strip leading and trailing spaces from names