0

Abbreviate the inputted phrases
Given a inputted string, replace all occurrences of " is", " are", " am", and " have" with "'s", "'re", and "'ve" respectively.
Examples
Input
Output
I am
I'm
She is
She's
The dog is
The dog's
I have a dog
I've a dog
I have been hurt
I've been hurt
...