Parsing Prefix notation correctly