How can I auto populate a text field with a substring of another field?