Fixed several bugs string