Made some changes, checks is letter is used before