testing if string ends with suffix