fixed string prototype issue