Fixed a bug usage in javascript strings and java strings