rebase for AGM_currentChannel, remove while loop, switch from inString to find