The variables greeting and reply hold
messages with unnecessary spaces at the
beginning and end.
-
Use the trim() method to
remove these extra spaces
and store the result in
the variables trimmedGreeting
and trimmedReply.
-
Find the number of extra spaces
removed after trimming in both
messages and store the results
in the variables
spacesRemovedInGreeting and
spacesRemovedInReply.