Last lowercase loop fixed