string focus calculation