removed duplicate function to check for string suffix