my compiler was throwing me an error
trimming first to avoid whitespaces after "Inf"