removed space from startsWith("history")