returns cipher as string, loop modifications