added allowSpaces as default