tested to work for capitals