Changed position of function StrToReal