Split strings into variables