Shortened capitalization scheme code

by making this conditional statement compound rather than having two
separate statements.