Adding a bug fix to trim Sentinel Host Names.

Contributing a bug fix to deal with leading/trailing spaces in the Host Names. This can cause a failover to fail if the secondary host name has leading/trailing spaces.