solve text justification