Error trapping on the prefix tree looking for a prefix that doesn't exist and some formattng