Bank of America Interview Question

Given a comma-delimited text string, how do you refer to a part of that string by creating a user-defined function instead of programmatically parsing through the string?