Fixes String.indexOf(String) issue