Fixed non-thread-safe functions
Implemented startsWith
Implemented endsWith
Implemented contains(String)
Implemented trim(), ltrim(), rtrim()