Catch invalid id strings