Added defensive code for all string methods
Fixed test error for Tab