template variables with spaces are not replaced correctly fixed #129