updating assertbases function to compare strings