Add str typecasting to getitem.