The length of a prompt is going to be dynamic, depending on the variables you're using, such as user, directory, host and so on. Please give some specific example. What's your prompt, and what's your expectation. You can check by
echo $PS1. Also, what you're trying to do exactly.