Trim ajax response