endswith only supported in ff