Created better caption length checking