It also depends on what is desired. The replace function, which wasn't in my original code as it wasn't needed, only takes out spaces. If there are any numbers present they may mess things up with the i as well. but if they are allowed it should work perfectly with only slight modification of...