$('#string').keyup(function() {
    if (this.value.match(/[^a-zA-Z\s]/g)) {
        this.value = this.value.replace(/[^a-zA-Z\s]/g, '');
    }
});