Remove trailing whitespace string to float