public int getPixelWidth(String sentence, int[] uppercase, int[] lowercase) {
		char[] charArray = sentence.toCharArray();
		int sum = 0;
		for (char c : charArray) {
			if (sum > 0) {
				sum++;
			}
			if ('A' <= c && c <= 'Z') {
				sum += uppercase[c - 'A'];
			}
			if ('a' <= c && c <= 'z') {
				sum += lowercase[c - 'a'];
			}
			if (c==' '){
				sum+=3;
			}
		}
		return sum;
	}