import java.util.Arrays;
import java.util.List;
import org.bukkit.ChatColor;
public class StringUtils {
public static String replace(String text, String searchString, String replacement) {
<BUG>if (text == null || text.isEmpty() || searchString.isEmpty() || replacement == null) return text;
int start = 0;</BUG>
int max = -1;
int end = text.indexOf(searchString, start);
if (end == -1) return text;

import java.util.Arrays;
import java.util.List;
import org.bukkit.ChatColor;
public class StringUtils {
public static String replace(String text, String searchString, String replacement) {
if (text == null || text.isEmpty() || searchString.isEmpty()) return text;
if(replacement == null) replacement = "";
int start = 0;
int max = -1;
int end = text.indexOf(searchString, start);
if (end == -1) return text;
