Optical study of xanthene-type dyes in nano-confined liquid