setting end to end of string if quote not found