find chain function to make proper pdb atom names