String word= fDisplayString;  int wordLength= word == null ? 0 : word.length(); if (offset >  fReplacementOffset + wordLength) return false;  try { int length= offset - fReplacementOffset; String start= document.get(fReplacementOffset, length); return word.substring(0, length).equalsIgnoreCase(start); } catch (BadLocationException x) { }  return false;
return startsWith(document, offset, fDisplayString);
	public boolean isValidFor(IDocument document, int offset) {				if (offset < fReplacementOffset)			return false;					/* 		 * See http://dev.eclipse.org/bugs/show_bug.cgi?id=17667		String word= fReplacementString;		 */ 		String word= fDisplayString;				int wordLength= word == null ? 0 : word.length();		if (offset >  fReplacementOffset + wordLength)			return false;				try {			int length= offset - fReplacementOffset;			String start= document.get(fReplacementOffset, length);			return word.substring(0, length).equalsIgnoreCase(start);		} catch (BadLocationException x) {		}						return false;	}