Form Input format changes

Good morning, I have a question regarding form input. Specifically, I want the Tag ID# input, for users to only be able to write a 9-digit number with the social security format where hyphens automatically appear as the user types the numbers (000-00-0000). Similarly, I want the Pet Names Input for users, as they type their pet name, to appear in all caps.
Thank you for your help!