get string pixel width