detect and convert numbers