Optimization. String's bug fixes