Updated str_to_bytes function to recognise Terabytes