protected static boolean startsWith(String string,String tag){
  return string.startsWith(tag) || (tag.contains(" ") && string.startsWith(tag.replaceAll(" ","")));
}

protected static boolean startsWith ( String string , String tag ) { return string . startsWith ( tag ) || ( tag . contains ( " " ) && string . startsWith ( tag . replaceAll ( " " , "" ) ) ) ; }
does string start with the given tag ( allowing spaces inside tag to be missing in string )
