Remove extra spaces from input (causes problems for Annotation.scala)