change ts string to remove key and default