Remove leading and trailing zeroes