Check if we have enough place to add quotes

add missing check.