Don't allow dot as last character