local fun = {}
function fun.formatUnit(unitToFormat)
num = 0
a = {}
for i in string.gmatch(unitToFormat.args[1], "%S+") do
a[num]=i
num = num + 1
end
if num == 2 then
if a[1] == "Kilometer" then
a[1] = "km"
elseif a[1] == "Meter" then
a[1] = "m"
end
return a[0].." "..a[1]
end
end
return fun