Remove trailing whitespace
Call "literal".equals(var) rather than var.equals("literal")

This prevents npe in case var is null
Explain what failure to get a crumb implies