Fix small coding standard issues (spaces). Change method to private. Change EOF to 'EOF' as no need to parse strings