Removal of trailing whitespaces and greater than zero buffer size check